<div class="container" id="crop-avatar">

    <!-- Cropping modal -->
    <div class="modal fade" id="avatar-modal" aria-hidden="true" aria-labelledby="avatar-modal-label" role="dialog"
         tabindex="-1">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <form class="avatar-form" enctype="multipart/form-data" method="post">
                    <div class="modal-header">
                        <button class="close" data-dismiss="modal" type="button">&times;</button>
                        <h4 class="modal-title" id="avatar-modal-label">裁剪</h4>
                    </div>
                    <div class="modal-body">
                        <div class="avatar-body">

                            <!-- Upload image and data -->
                            <div class="avatar-upload">
                                <input class="avatar-src" name="avatar_src" type="hidden">
                                <input class="avatar-data" name="avatar_data" type="hidden">
                                <label for="avatarInput">本地上传</label>
                                <input class="avatar-input" id="avatarInput" name="avatar_file" type="file">
                                <input class="avatar-figure" name="FIGURE" type="hidden" value="0">
                                <input class="avatar-key" name="key" type="hidden" value="">
                                <input class="avatar-token" name="token" type="hidden" value="">
                            </div>

                            <!-- Crop and preview -->
                            <div class="row">
                                <div class="col-md-9">
                                    <div class="avatar-wrapper"></div>
                                </div>
                                <div class="col-md-3">
                                    <div class="avatar-preview preview-lg"></div>
                                    <div class="avatar-preview preview-md"></div>
                                    <div class="avatar-preview preview-sm"></div>
                                </div>
                            </div>

                            <div class="row avatar-btns">
                                <div class="col-md-9">
                                    <div class="btn-group">
                                        <button class="btn btn-primary" data-method="aspectRatio" data-option="0"
                                                type="button" title="任意">任意
                                        </button>
                                        <button class="btn btn-primary" data-method="aspectRatio" data-option="1"
                                                type="button" title="产品图">1:1(产品图)
                                        </button>
                                        <button class="btn btn-primary" data-method="aspectRatio" data-option="4"
                                                type="button" title="广告图">360:90(广告图)
                                        </button>
                                        <button class="btn btn-primary" data-method="aspectRatio" data-option="2"
                                                type="button" title="轮播图">360:190(轮播图)
                                        </button>
                                        <button class="btn btn-primary" data-method="aspectRatio" data-option="0.7"
                                                type="button" title="头像">85:120(头像)
                                        </button>
                                    </div>
                                </div>
                                <div class="col-md-3">
                                    <button class="btn btn-primary btn-block avatar-save" type="submit">完成</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- <div class="modal-footer">
                      <button class="btn btn-default" data-dismiss="modal" type="button">Close</button>
                    </div> -->
                </form>
            </div>
        </div>
    </div><!-- /.modal -->

    <!-- Loading state -->
    <div class="loading" aria-label="Loading" role="img" tabindex="-1"></div>
</div>
